package com.lanhao.aot.websocket;

import java.net.URI;

import org.java_websocket.enums.ReadyState;

public class KTWebsocketUtil {

	public static void main(String[] args) {
		try {
			MyWebSocketClient myClient = new MyWebSocketClient(new URI("ws://192.168.2.23:7681"));
			myClient.connect();
			while (!myClient.getReadyState().equals(ReadyState.OPEN)) {
				System.out.println("连接中。。。");
				Thread.sleep(1000);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
